package com.example.demo.service.impl;

import com.example.demo.dao.UserMapper;
import com.example.demo.service.UserService;
import com.example.demo.vo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    //依赖注入
    @Autowired
    UserMapper userMapper;

    @Override
    public User findUser(String userName) {
        User user = userMapper.selectUserByName(userName);
        return user;
    }


}
